﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace work5_19_Interval
{
    internal class Inspect1
    {
        private string txt;
        public string Prefix(Object obj)
        {
             txt = obj.ToString().Trim();
            if (string.IsNullOrEmpty(txt) )
            {
                return "前缀名称不合理";
            }
            return "前缀名称合理";
        }

        public void Star(Object obj)
        {
            txt = obj.ToString();

            try
            {
                double star = Convert.ToDouble(txt);
            }catch (Exception ex)
            {
                throw new Exception("格式错误");
            }
            
            
        }

        public void End(Object obj)
        {
            txt = obj.ToString();
            try
            {
                double end = Convert.ToDouble(txt);
            }
            catch (Exception ex)
            {
                throw new Exception("格式错误");
            }
        }


    }
}
